package org.szgb.console.sys.user.mapper;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
import org.szgb.console.sys.user.entity.SysUser;

import java.util.List;

@Mapper
@Repository
public interface SysUserMapper {
    SysUser get(String id);

    List<SysUser> findList(SysUser sysUser);

    Integer getCount(SysUser sysUser);

    void insert(SysUser sysUser);

    void update(SysUser sysUser);

    void delete(String[] ids);

    SysUser getOfLogin(SysUser sysUser);

    List<SysUser> getUserInDepartmentWithRole(@Param("departmentId") String departmentId, @Param("roleId") String roleId);

    List<SysUser> getByIdArray(String[] ids);

    List<SysUser> fuzzyGet(@Param("parameter") String parameter);

    SysUser getByIdAndPassword(@Param("id") String id, @Param("password") String password);
}
